package com.tshopping.service;

import com.tshopping.bean.DataModel;
import com.tshopping.bean.Goods;
import com.tshopping.bean.Page;
import com.tshopping.bean.Parameter;
import com.tshopping.util.ResponseData;
import org.apache.ibatis.annotations.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;

public interface GoodsService {

    ResponseData addGoods(DataModel dataModel);

    ResponseData getGoods(int store, int user, int currentPage);

    ResponseData checkGoods(int isSell, int id);

    ResponseData updateGoods(DataModel dataModel);

    ResponseData deleteGoods(int id);

    ResponseData selectAllGoods();

    ResponseData uploadGoodsPicture(HttpServletRequest request, String email, MultipartFile file);

    ResponseData selectGoods(int id);

    ResponseData getAllGoods(int currentPage);

    ResponseData isApprove(int isApprove,int id);
}
